_.templateSettings = {
  interpolate: /\{\{(.+?)\}\}/g
};

// In the most part, this file contains solusions from stackoverflow
// thanks to people who save our time =)

function assert(condition, message) {
    if (!condition) {
        throw message || "Assertion failed";
    }
}



(function($) {
    $.fn.Enter = function(func) {
        this.bind('keypress', function(e) {
            if (e.keyCode == 13){func.apply(this, [e]);}
        });
        return this;
     };
})
(jQuery)

function clearFileInput(ctrl) {
  try {
    ctrl.value = null;
  } catch(ex) { }
  if (ctrl.value) {
    ctrl.parentNode.replaceChild(ctrl.cloneNode(true), ctrl);
  }
}

var downloadURL = function downloadURL(url) {
    window.open(url, '_blank');
};

